﻿<%@ Page Title="医院汇总统计" Language="C#" MasterPageFile="~/Master/MasterPage_New.master" AutoEventWireup="true"
    CodeBehind="HosPitalGoods_TotalByXZ.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.NewReport.HosPitalGoods_TotalByXZ" %>

<%@ Register Src="~/Common/AreaControls.ascx" TagName="AreaControl" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="tabnav">
        <ul>
            <li><a href="HosPitalGoods_Total.aspx">全部医疗机构汇总统计</a></li>
            <li><a href="HosPitalGoods_TotalByFJC.aspx">二、三级医疗机构汇总统计</a></li>
            <li><a href="HosPitalGoods_TotalMY.aspx">基层医疗机构汇总统计</a></li>
            <li class="active"><a href="#">乡镇医疗机构汇总统计</a></li>
            <li><a href="HosPitalGoods_TotalBySQ.aspx">社区医疗机构汇总统计</a></li>
            <%--<li><a href="HosPitalGoods_TotalByQT.aspx">其他医疗机构</a></li>--%>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr class="ltlAdvance">
                            <td align="right">
                                <asp:Label ID="lblHospital" runat="server" Text="医院名称："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtHospital" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="lblStartTime" runat="server" Text="开始时间："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtTimeFrom" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="lblEndTime" runat="server" Text="结束时间："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtTimeTo" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"></asp:TextBox>
                            </td>
                        </tr>
                        <tr class="ltlAdvance">
                            <td align="right">
                                所在地区：
                            </td>
                            <td align="left">
                                <%-- <asp:DropDownList ID="ddlCity" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlCity_SelectedIndexChanged">
                                </asp:DropDownList>
                                <asp:DropDownList ID="ddlCountry" runat="server">
                                </asp:DropDownList>--%>
                                <uc3:AreaControl ID="AreaControl1" runat="server" />
                            </td>
                            <td align="right">
                                排序字段：
                            </td>
                            <td style="text-align: left">
                                <asp:DropDownList ID="OrderFileds" runat="server" Width="126px">
                                    <asp:ListItem Value="PurchaseAmountTotal">采购金额(元)</asp:ListItem>
                                    <asp:ListItem Value="DistributeAmountTotal">配送金额(元)</asp:ListItem>
                                    <asp:ListItem Value="DistributeRate">配送率</asp:ListItem>
                                    <asp:ListItem Value="WareHouseAmountTotal">入库金额(元)</asp:ListItem>
                                    <asp:ListItem Value="WareHouseRate">入库率</asp:ListItem>
                                    <asp:ListItem Value="SellCount">销售数量</asp:ListItem>
                                    <asp:ListItem Value="SellAmountTotal">销售金额</asp:ListItem>
                                    <asp:ListItem Value="SellRate">销售率</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td align="right">
                                排序方式：
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="OrderType" runat="server" Width="126px">
                                    <asp:ListItem Value="DESC">降序</asp:ListItem>
                                    <asp:ListItem Value="ASC">升序</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <%--                        <tr>
                            <td align="right">医院等级：</td>
                            <td align="left">
                                <asp:CheckBoxList ID="cblboxlist" runat="server" 
                                    RepeatDirection="Horizontal">
                                    <asp:ListItem Selected="True" Value="-1">全部</asp:ListItem>
                                    <asp:ListItem Value="1">一甲</asp:ListItem>
                                    <asp:ListItem Value="2">一乙</asp:ListItem>
                                    <asp:ListItem Value="3">二甲</asp:ListItem>
                                    <asp:ListItem Value="4">二乙</asp:ListItem>
                                    <asp:ListItem Value="5">三甲</asp:ListItem>
                                    <asp:ListItem Value="6">三乙</asp:ListItem>
                                </asp:CheckBoxList>
                            </td>
                        </tr>--%>
                    </table>
                </td>
                <td width="100px">
                    <hz:HzButton ID="btnQuery" runat="server" Text="查  询" OnClick="btnQuery_Click" CssClass="btn" />
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwInfo" runat="server" EmptyDataText="暂无符合条件的数据！" AutoGenerateColumns="False"
        CssClass="mainlist" DataKeyNames="HospitalID,HospitalName">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:BoundField DataField="AreaName" HeaderText="地区" />
            <asp:BoundField DataField="HospitalName" HeaderText="医院名称" />
            <asp:BoundField DataField="PurchaseAmountTotal" HeaderText="采购金额" DataFormatString="{0:N3}" />
            <asp:BoundField DataField="DistributeAmountTotal" HeaderText="配送金额" DataFormatString="{0:N3}" />
            <asp:BoundField DataField="DataRate_PS" HeaderText="配送率" DataFormatString="{0:P3}"
                NullDisplayText="NA" />
            <asp:BoundField DataField="WareHouseAmountTotal" HeaderText="入库金额" DataFormatString="{0:N3}" />
            <asp:BoundField DataField="addDataColumnRate" HeaderText="入库率" DataFormatString="{0:P3}"
                NullDisplayText="NA" />
            <%--<asp:BoundField DataField="SellCount" HeaderText="销售数量" NullDisplayText="NA" />--%>
            <asp:BoundField DataField="SellAmountTotal" HeaderText="销售金额" NullDisplayText="NA" />
            <asp:BoundField DataField="addSellRate" HeaderText="销售率" NullDisplayText="NA" />
        </Columns>
    </asp:GridView>
    <div class="page">
        <span style="width: 30%; float: left; text-align: left">
            <hz:HzButton ID="btnExcel" runat="server" CssClass="btn" Text="导出数据" OnClick="btnExcel_Click" /></span>
        <span style="width: 70%; float: right; text-align: right">
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged"
                AlwaysShow="true">
            </webdiyer:AspNetPager>
        </span>
    </div>
    <div class="listip">
        <ul>
            <li>统计:<asp:Label ID="lblCount" runat="server"></asp:Label>
            </li>
            <li>说明:<span>（1）实时查询数据量庞大，建议静态查询；</span>
                <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>（2）由于数据量庞大，请先选择相应条件，点击“查询”按钮。</span></li>
            </li>
        </ul>
    </div>
</asp:Content>
